package com.scs.application.core.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 查询条件
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class QueryCondition implements Serializable {
	public QueryCondition(String field, String rule, Object val) {
		this.field = field;
		this.rule = rule;
		this.val = val;
	}



	// 字段名称
	private String field;

	// 字段拼音字段
	private String fieldPy;

	// 查询规则
	private String rule;

	// 查询值
	private Object val;

}
